package com.graduation.smartparkingplatform.Dao;

import com.graduation.smartparkingplatform.Pojo.Opinion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OpinionMapper {

  public List<Opinion> getOpinion();

  public Opinion searchOpinionById(@Param("opinionId") Integer opinionId);

  public List<Opinion> searchOpinionStatus(@Param("status") Boolean status);

  public List<Opinion> OpinionByAsc();

  public List<Opinion> OpinionByDesc();

  public Boolean changeOpinionStatus(
      @Param("companyId") Integer opinionId, @Param("status") Boolean status);

  public Boolean deleteOpinion(@Param("opinionId") Integer opinionId);
}
